//go:build !integration

package controller

import (
	"context"
	"testing"
)

func TestExecute(t *testing.T) {
	err := execute(context.Background(), FailingTask{})
	if err == nil {
		t.Fatalf("expected error")
	}

	t.Log(err)
}

type FailingTask struct {
}

func (f FailingTask) Name() string {
	return "failing-task"
}

func (f FailingTask) Execute(ctx context.Context) error {
	//TODO implement me
	panic("implement me")
}
